export default (attr)=>{
  let props = {}
  for(let i of attr){
    props[i.name] = i.value
  }
  console.log(props)
  return props
}